package week02.validator_ex;

public class TestAuthenticator {
    public static void main(String[] args){
        Authenticator auth=AuthenticatorFactory.createAuthenticator();

        auth.save("auth","123456");

        if(auth.authenticate("auth","123456")){
            System.out.println("校验的用户名和密码与存入的一致");
        }
    }
}
